package com.zhongwang.mms.module.basic.dao;

import com.zhongwang.mms.gen.entity.TEmploy;
import com.zhongwang.mms.gen.entity.TEmployExample;
import com.zhongwang.mms.gen.entity.TWarehouseInfo;
import com.zhongwang.mms.module.buy.model.TEmployModel;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface TEmployDao {
    long countByExample(TEmployExample example);

    int deleteByExample(TEmployExample example);

    int deleteByPrimaryKey(Integer empId);

    int insert(TEmploy record);

    int insertSelective(TEmploy record);

    List<TEmploy> selectByExample(TEmployExample example);

    TEmploy selectByPrimaryKey(Integer empId);

    int updateByExampleSelective(@Param("record") TEmploy record, @Param("example") TEmployExample example);

    int updateByExample(@Param("record") TEmploy record, @Param("example") TEmployExample example);

    int updateByPrimaryKeySelective(TEmploy record);

    int updateByPrimaryKey(TEmploy record);
    /**
     *@name: findListByCondition
     *@description: 根据条件获取列表
     *@param: [queryParam]
     *@returnType: java.util.List<com.zhongwang.mms.module.buy.model.TEmployModel>
     *@author: 徐一贺
     *@coddingDate: 2020/8/8 14:57
     *@version: v1.0
    **/
    List<TEmployModel> findListByCondition(TEmployModel queryParam);
    /**
     *@name: getByCondition
     *@description: 根据条件获取实体
     *@param: [param]
     *@returnType: com.zhongwang.mms.gen.entity.TEmploy
     *@author: 徐一贺
     *@coddingDate: 2020/8/8 14:57
     *@version: v1.0
    **/
    TEmploy getByCondition(TEmploy param);

}